/*
 * TXyz.java
 *
 * Created on 5 czerwiec 2007, 13:32
 *
 * Klasa reprezentuje punkt xyz
 */

package wej;

/**
 *
 * @author mignat
 */
public class TXyz {
    
    double theX, theY, theZ;
    //int theHorKat; //kat w poziomie
    public TXyz(double[] aT) 
    {   if (aT.length == 3) {
            theX = aT[0];
            theY = aT[1];
            theZ = aT[2];
            
            //theHorKat = (int)Math.round(Math.toDegrees(Math.atan2(theY, theX)+Math.PI/2));
        } //koniec if
    } //koniec konstruktora
    
    public TXyz(double aX, double aY, double aZ) {
            theX = aX;
            theY = aY;
            theZ = aZ;
            
            //theHorKat = (int)Math.round(Math.toDegrees(Math.atan2(theY, theX)+Math.PI/2));
    } //koniec konstruktora
    
    public double getX()    {   return theX;    }
    public double getY()    {   return theY;    }
    public double getZ()    {   return theZ;    }
    //public int getHorKat()  {   return theHorKat;   }
    
    public String toString() {
        StringBuffer _sb = new StringBuffer("(");
        _sb.append(theX).append(", ").append(theY).append(", ").
                                                    append(theZ).append(");");
        return _sb.toString();
    }
} //koniec klasy TXyz
